package com.example.lenovo.appstore.activity;

import androidx.appcompat.app.AppCompatActivity;
import butterknife.Bind;
import butterknife.ButterKnife;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.lenovo.appstore.R;
import com.example.lenovo.appstore.base.BaseActivity;
import com.example.lenovo.appstore.utils.AppContext;
import com.example.lenovo.appstore.utils.AppManager;
import com.example.lenovo.appstore.utils.StatusBarUtil;
import com.example.lenovo.appstore.view.TitleBarView;

public class ChangeAccoutActivity extends BaseActivity implements View.OnClickListener {
    @Bind(R.id.changeaccout_title)
    TitleBarView titleBarView;

    @Bind(R.id.accout_yanzheng)
    TextView accout_yanzheng;//确定

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_change_accout);
        ButterKnife.bind(this);
        initView();
    }

    @Override
    protected void initView() {
        titleBarView.setTitle(AppContext.getInstance().getResources().getString(R.string.information));
        titleBarView.showBackButton(true);
        StatusBarUtil.setStatusBarLightMode(getWindow());
        initListener();
    }

    @Override
    protected void initListener() {
        accout_yanzheng.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.accout_yanzheng:
                Intent intent = new Intent(ChangeAccoutActivity.this,BindingAccoutActivity.class);
                startActivity(intent);
                finish();

                break;
        }
    }
}
